import barcodeLayout from '@/components/barcode/layout'

const barcodeRouter = {
  path: '/barcode',
  name: '扫码',
  meta: {
    roles: ['admin'],
    permission: ''
  },
  component: barcodeLayout,
  redirect: '/barcode/menu',
  children: [{
      path: "/barcode/menu",
      name: "扫码菜单",
      permission: '',
      meta: {
        roles: ['admin'],
        permission: ''
      },
      component: () => import('@/components/barcode/scanMenu')
    }, {
      path: "/barcode/reivew",
      name: "出库复核",
      permission: '',
      meta: {
        roles: ['admin'],
        permission: ''
      },
      component: () => import('@/components/barcode/reivew')
    }, {
      path: "/barcode/detail/:id",
      name: "出库复核详情",
      permission: '',
      meta: {
        roles: ['admin'],
        permission: ''
      },
      component: () => import('@/components/barcode/detail')
    }, {
      path: "/barcode/jianhuo",
      name: "出库拣货",
      permission: '',
      meta: {
        roles: ['admin'],
        permission: ''
      },
      component: () => import('@/components/barcode/jianhuo/jianhuo')
    }, {
      path: "/barcode/jianhuo/stockList/:id",
      name: "拣货库位列表",
      permission: '',
      meta: {
        roles: ['admin'],
        permission: ''
      },
      component: () => import('@/components/barcode/jianhuo/stockList')
    }, {
      path: "/barcode/jianhuoDetail",
      name: "拣货库位详情",
      permission: '',
      meta: {
        roles: ['admin'],
        permission: ''
      },
      component: () => import('@/components/barcode/jianhuo/detail')
    },
    {
      path: "/barcode/jihuo",
      name: "集货扫码",
      permission: '',
      meta: {
        roles: ['admin'],
        permission: ''
      },
      component: () => import('@/components/barcode/jihuo/jihuo')
    },
    {
      path: "/barcode/jihuo/stockList/:id",
      name: "集货库位列表",
      permission: '',
      meta: {
        roles: ['admin'],
        permission: ''
      },
      component: () => import('@/components/barcode/jihuo/stockList')
    },
    {
      path: "/barcode/jihuoDetail",
      name: "集货库位详情",
      permission: '',
      meta: {
        roles: ['admin'],
        permission: ''
      },
      component: () => import('@/components/barcode/jihuo/detail')
    },
    {
      path: "/barcode/bozhong",
      name: "播种详情",
      permission: '',
      meta: {
        roles: ['admin'],
        permission: ''
      },
      component: () => import('@/components/barcode/bozhong/bozhong')
    },

    {
      path: "/barcode/bozhong/stockList/:id",
      name: "播种产品列表",
      permission: '',
      meta: {
        roles: ['admin'],
        permission: ''
      },
      component: () => import('@/components/barcode/bozhong/stockList')
    },
    {
      path: "/barcode/bozhongDetail",
      name: "拣货库位详情",
      permission: '',
      meta: {
        roles: ['admin'],
        permission: ''
      },
      component: () => import('@/components/barcode/bozhong/detail')
    },
    {
      path: "/barcode/movement",
      name: "移库扫码",
      permission: '',
      meta: {
        roles: ['admin'],
        permission: ''
      },
      component: () => import('@/components/barcode/movement/movement')
    },
    {
      path: "/barcode/movement/taskout",
      name: "任务出",
      permission: '',
      meta: {
        roles: ['admin'],
        permission: ''
      },
      component: () => import('@/components/barcode/movement/taskout')
    },
    {
      path: "/barcode/movement/detailout",
      name: "详细任务出",
      permission: '',
      meta: {
        roles: ['admin'],
        permission: ''
      },
      component: () => import('@/components/barcode/movement/detailout')
    },
    {
      path: "/barcode/movement/detailin",
      name: "详细任务入",
      permission: '',
      meta: {
        roles: ['admin'],
        permission: ''
      },
      component: () => import('@/components/barcode/movement/detailin')
    },
    {
      path: "/barcode/movement/createout",
      name: "创建任务出",
      permission: '',
      meta: {
        roles: ['admin'],
        permission: ''
      },
      component: () => import('@/components/barcode/movement/createout')
    },
    {
      path: "/barcode/movement/createin",
      name: "创建任务入",
      permission: '',
      meta: {
        roles: ['admin'],
        permission: ''
      },
      component: () => import('@/components/barcode/movement/createin')
    },
    {
      path: "/barcode/movement/createoutdet",
      name: "创建任务出详情",
      permission: '',
      meta: {
        roles: ['admin'],
        permission: ''
      },
      component: () => import('@/components/barcode/movement/createoutdet')
    },
    {
      path: "/barcode/movement/createindet",
      name: "创建任务入详情",
      permission: '',
      meta: {
        roles: ['admin'],
        permission: ''
      },
      component: () => import('@/components/barcode/movement/createindet')
    },
    {
      path: "/barcode/fangchuanhuo",
      name: "防串货入口",
      permission: '',
      meta: {
        roles: ['admin'],
        permission: ''
      },
      component: () => import('@/components/barcode/fangchuanhuo/panel')
    },
    {
      path: "/barcode/fangchuanhuo/detail/:id",
      name: "防串货详情",
      permission: '',
      meta: {
        roles: ['admin'],
        permission: ''
      },
      component: () => import('@/components/barcode/fangchuanhuo/detail')
    },
  ]
}

export default barcodeRouter
